#!/bin/bash
# PHP WebSocket服务器启动脚本

cd "$(dirname "$0")"

echo "=========================================="
echo "定位后台服务器启动 (PHP版本)"
echo "=========================================="
echo ""

# 检查依赖
if [ ! -d "vendor" ]; then
    echo "❌ 依赖未安装，请先运行: ./deploy.sh"
    exit 1
fi

echo "启动WebSocket服务器..."
echo "WebSocket地址: ws://0.0.0.0:8080"
echo "按 Ctrl+C 停止服务器"
echo ""

php server.php


